import request from "../api"
/**
 * 智慧安监获取数据
 * @param params
 */
export function getDataZHAJ(params: any) {
  return request({
    url: "yqyd/yqydbase/mapList",
    params,
    method: "get"
  })
}
/**
 * 智慧应急获取数据
 * @param params
 */
export function getDataZHYJ(params: any) {
  return request({
    url: "zhyj/zhyjresourceamaterials/list",
    params,
    method: "get"
  })
}

/**
 * 获取图层范围,红线与黄线
 */
export function getLayerExtent() {
  return request({
    url: "zhaj/zhajmapconfig/circle",
    method: "get"
  })
}

/**
 * 获取事故点坐标
 * @param params
 */
export function getSgPoint(params: any) {
  return request({
    url: "zhyj/zhyjevent/list",
    params,
    method: "get"
  })
}

/**
 * 获取撤离点坐标，http://juyuan.zccpro.com/renren-fast/zhyj/zhyjresourcegshelter/list?t=1664975251852&page=1&limit=10
 * @param params
 */
export function getLeavePoint(params: any) {
  return request({
    url: "zhyj/zhyjresourcegshelter/list",
    params,
    method: "get"
  })
}

/**
 * 获取救援点坐标，http://juyuan.zccpro.com/renren-fast/zhyj/zhyjresourcecrescue/list?t=1664975356236&page=1&limit=10
 * @param params
 */
export function getRescuePoint(params: any) {
  return request({
    url: "zhyj/zhyjresourcecrescue/list",
    params,
    method: "get"
  })
}
